class HomePercentModel {
  int errcode;
  _Data data;
  String message;
  int retcode;

  HomePercentModel({this.errcode, this.data, this.message, this.retcode});

  HomePercentModel.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    data = json['data'] != null ? new _Data.fromJson(json['data']) : null;
    message = json['message'];
    retcode = json['retcode'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errcode'] = this.errcode;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    data['message'] = this.message;
    data['retcode'] = this.retcode;
    return data;
  }
}

class _Data {
  LastMonthStatistics lastMonthStatistics;

  _Data({this.lastMonthStatistics});

  _Data.fromJson(Map<String, dynamic> json) {
    lastMonthStatistics = json['lastMonthStatistics'] != null
        ? new LastMonthStatistics.fromJson(json['lastMonthStatistics'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.lastMonthStatistics != null) {
      data['lastMonthStatistics'] = this.lastMonthStatistics.toJson();
    }
    return data;
  }
}

class LastMonthStatistics {
  String statisticsTime;
  String saasComId;
  double lastMonthTotalAmount;
  double saasComProfit;
  double dynamicStock;
  double lastMonthPlatformProfit;

  LastMonthStatistics(
      {this.statisticsTime,
      this.saasComId,
      this.lastMonthTotalAmount,
      this.saasComProfit,
      this.dynamicStock,
      this.lastMonthPlatformProfit});

  LastMonthStatistics.fromJson(Map<String, dynamic> json) {
    statisticsTime = json['statisticsTime'];
    saasComId = json['saasComId'];
    lastMonthTotalAmount = json['lastMonthTotalAmount'];
    saasComProfit = json['saasComProfit'];
    dynamicStock = json['dynamicStock'];
    lastMonthPlatformProfit = json['lastMonthPlatformProfit'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['statisticsTime'] = this.statisticsTime;
    data['saasComId'] = this.saasComId;
    data['lastMonthTotalAmount'] = this.lastMonthTotalAmount;
    data['saasComProfit'] = this.saasComProfit;
    data['dynamicStock'] = this.dynamicStock;
    data['lastMonthPlatformProfit'] = this.lastMonthPlatformProfit;
    return data;
  }
}